/**
 * Sensor Network Development Kit for 1-Wire Network (SeN)
 * Version : 0.1
 * Revision date : 2008-10-13
 * Author: Dubravko Penezic, dpenezic@gmail.com
 * 
 */

package utilityLib;

/**
 * PowerFluxTransformer class implement method to transform power flux from one scale to another
 * Version : 0.1.1
 * Revision date : 2008-10-22
 * 
 * @author Dubravko Penezic, dpenezic@gmail.com
 *
 */

public class PowerFluxTransformer {
	
	public PowerFluxTransformer(){
		
	}

/**
 * fromWm2tomWcm2 method transform from W/m2 to mW/cm2	
 * @param in
 * @return
 */
public double fromWm2tomWcm2(double in){
	
	return in*0.1d;
	
}

/**
 * frommWcm2toWm2 method transform from mW/cm2 to W/m2 
 * @param in
 * @return
 */
public double frommWcm2toWm2(double in){
	
	return in/0.1d;
	
}

/**
 * fromWm2toBtusft2 method transform from W/m2 to Btu*s/ft2
 * @param in
 * @return
 */
public double fromWm2toBtusft2(double in){
	
	return in*0.0102031;
	
}

/**
 * fromBtusft2toWm2 method transform from Btu*s/ft2 to W/m2
 * @param in
 * @return
 */
public double fromBtusft2toWm2(double in){
	
	return in/0.0102031;
	
}

}
